import { req } from './axiosfun';
export function getTreeMenu() {
    return req("get", "/api/TreeMenu/GetMenuTreeAsync")
};
export function getTreeMenuSelect() {
    return req("get", "/api/TreeMenu/GetMenuTreeSelectAsync")
};
//获取树形数据详情
export function GetTreeMenuId(id) {
    return req("get", "/api/TreeMenu/GetTreeMenuId?id=" + id)
};
//删除树形菜单
export function DeleteTreeMenu(id) {
    return req("delete", "/api/TreeMenu/Delete?id=" + id)
}
//新增树形菜单数据
export function CreateTreeMenu(parames) {
    return req("post", "/api/TreeMenu/Create", parames)
}
//更新树形菜单数据
export function UpdateTreeMenu(parames) {
    return req("put", "/api/TreeMenu/Update", parames)
}
//树形菜单
export function getTreeList() {
    return req("post", "/api/User/GetTreeList")
}
//角色拥有的树形菜单
export function getRoleMenu(params){
    console.log('params',params)
    return req("get","/api/User/GetRoleMenu?RoleId="+params)
}



export default {
    getTreeMenu,
    getTreeMenuSelect,
    GetTreeMenuId,
    DeleteTreeMenu,
    CreateTreeMenu,
    UpdateTreeMenu,
    getTreeList,
    getRoleMenu
};